-- own_prop
-- create by wangy
-- 自身附加prop

return {
    apply = function(source, target, skillId, round, para, value)
        -- 赋予属性
        PropM.record(source, para, "property_forever")

        -- 0伤害
        return { ["damage"] = 0, ["cure"] = 0, };
    end,

    parse = function(desc)
        local arr = string.explode(desc, ",");
        return { tonumber(arr[1]), arr[2], tonumber(arr[3]), tonumber(arr[4]), };
    end,

    getDetail = function(para)
        local desc = getLocStr("shipskill_own_prop");

        -- TODO: 暂时只有提升四维，先不考虑其他prop
        local attribName = "airship_" .. para[2];
        desc = string.format(desc, getLocStr(attribName), para[3]);

        return desc;
    end,
};
